package com.kevin.mybatis.model;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;

@Getter
@Setter
@ToString
@Accessors(chain = true)
@Schema(description = "登录用户")
public class LoginUser implements Serializable {

    @Serial
    private static final long serialVersionUID = -7883598771413216457L;

    @Schema(description = "用户ID", type = "java.lang.Long", defaultValue = "1L", allowableValues = {"1", "2", "3"})
    private Long userId;

    @Schema(description = "组织ID", type = "java.lang.Long", defaultValue = "1L", allowableValues = {"1", "2", "3"})
    private Long orgId;

    @Schema(description = "数据范围类型", type = "java.lang.Integer", defaultValue = "1", allowableValues = {"1", "2", "3", "4", "5"})
    private Integer datascope;

    @Schema(description = "数据范围列表", hidden = true)
    private Long[] rangeList;

}
